/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"324579AF-510D-4C93-9D9C-1967FD584DA7"}
 */
function Ira_detalle(event) {
	globals.mostrarForm("ing_varios_dtl");
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"9525C743-1DD4-4FD1-B73A-8385E79B25D7"}
 * @AllowToRunInFind
 */
function buscar(firstShow, event)  
{
	databaseManager.revertEditedRecords();
	databaseManager.setAutoSave(true);
	 
	var estado_find=controller.find()
	if (estado_find==false)
	{
		globals.DIALOGS.showWarningDialog('Aviso',"No encontró Ingresos Varios (1º find)",'OK');
		return false;
	}
	codigo_movimiento='2...3'   // trae codigo=2=ing.varios  y 3=ing. varios negativo
	var found = controller.search()
	if (found == 0)
	{
		globals.DIALOGS.showWarningDialog('Aviso','No se encontraron Ingresos Varios con esas condiciones','OK')
	}
	else
	{
		foundset.sort('fecha desc, letra asc, sucural asc ,nro_comprobante asc');
	}
	return true
}
